<template>
  <h1>{{msg}}</h1>

  <p>
    <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite Documentation</a> |
    <a href="https://v3.vuejs.org/" target="_blank">Vue 3 Documentation</a>
  </p>

  <button @click="state.count++">count is: {{ state.count }}</button>
  <p>
    Edit
    <code>components/HelloWorld.vue</code> to test hot module replacement.
  </p>
</template>



<script>
import { reactive } from 'vue'
import {getUserList} from '../api/user.js'
export default {
  props: {
    msg: String
  },
  setup(props, context) {
    const state = reactive({ count: 0 })
    getUserList({id: 5})
    return {
      state
    }
  }
}
</script>

<style scoped>
a {
  color: #42b983;
}
</style>